package com.ray.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ray.bean.EquipmentChangeOrderBean;
import com.ray.bean.UserProcessDisplayViewBean;
import com.ray.pojo.MyUser;
import com.ray.pojo.PurchaseOrderDetailPojo;

public interface DisplayViewMapper {

	/**
	 * 设置显示屏登录令牌
	 * @param company
	 * @param userId
	 * @param token
	 */
	void setDisplayViewToken(@Param("company")String company,@Param("userId") String userId,@Param("token") String token);

	/**
	 * 通过token获取用户
	 * @param token
	 * @return
	 */
	MyUser getMyUserByToken(@Param("token")String token);

	/**
	 * 获取换单记录
	 * @param map
	 * @return
	 */
	List<EquipmentChangeOrderBean> getEquipmentChangeOrderRecord(Map map);

	/**
	 * 采购看板sql
	 * @param purchaeMap
	 * @return
	 */
	List<PurchaseOrderDetailPojo> getPurchaseOrderByPageData(Map purchaeMap);

	/**
	 * 获取设备最后换单记录
	 * @param map
	 * @return
	 */
	List<EquipmentChangeOrderBean> getEquipmentChangeOrderRecordLast(Map map);

	/**
	 * 获取人员工序产能数据
	 * @param map
	 * @return
	 */
	List<UserProcessDisplayViewBean> getUserProcessDisplayViewData(Map map);

	/**
	 * 设置
	 * @param map
	 * @return
	 */
	int setMaterialIsShow(Map map);

	void deleteMaterialIsShow(Map map);

	/**
	 * 获取物料显示信息
	 * @param map
	 * @return
	 */
	Map getMaterialIsShow(Map map);
	
}
